home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / oath.lha / oath / Makefile < prev    next >
Makefile  |  1991-08-29  |  2KB  |  65 lines

  1. ##***************************************************************************
  2. ##             OATH :: Object-oriented Abstract Type Hierarchy
  3. ##***************************************************************************
  4. ##
  5. ##  Copyright (C) 1991, 1990  Texas Instruments Incorporated
  6. ##  Permission is granted to any individual or institution
  7. ##  to use, copy, modify, and distribute this software,
  8. ##  provided that this complete copyright and permission notice
  9. ##  is maintained, intact, in all copies and supporting documentation.
  10. ##
  11. ##  Texas Instruments Incorporated provides this software "as is"
  12. ##  without express or implied warranty.
  13. ##
  14. ##***************************************************************************
  15. ##  Makefile for the core OATH type library
  16. ##
  17. ##***************************************************************************
  18.  
  19. ## Note: obj filenames must be unique in first 15 characters!
  20.  
  21. LIBRARY   = liboath.a
  22. OBJS      = ensure.o        typeRegisterP.o exportP.o       oathCore.o      \
  23.         obj.o           token.o         localToken.o    character.o     \
  24.             bag.o           queue.o         seq.o           lifoQueue.o     \
  25.             slNodeP.o       pdlQueue.o                                      \
  26.             fifoQueue.o     deq.o           list.o          string.o        \
  27.             dlNodeP.o       dlList.o        dlcNodeP.o      minString.o     \
  28.             set.o           hashSet.o       finiteSet.o     characterSet.o  \
  29.             table.o         stringTable.o                                   \
  30.             numeric.o       bigInteger.o
  31.  
  32. #############################################################################
  33. ## Set-up C++ Compilation
  34.  
  35. CCC       = CC
  36. CCFLAGS   = -O
  37. CPPFLAGS  = -I../../include
  38.  
  39. #COMPILE.cc = $(CCC) $(CCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
  40. #LINK.cc    = $(CCC) $(CCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
  41.  
  42. %.o : ../../src/%.cc
  43.     $(COMPILE.cc) $<
  44.  
  45. #############################################################################
  46.  
  47. .KEEP_STATE:
  48. .PRECIOUS: $(LIBRARY)
  49.  
  50. #############################################################################
  51.  
  52. all :
  53.     cd lib/$(TARGET_ARCH:-%=%); make library
  54.  
  55. library : $(LIBRARY)
  56.  
  57. $(LIBRARY) : $(LIBRARY)($(OBJS))
  58.     ar rv $@ $?
  59.     ranlib $@
  60.  
  61. $(LIBRARY)(%.o) : %.o
  62.  
  63.  
  64. #############################################################################
  65.